home *** CD-ROM | disk | FTP | other *** search
- - We get a new byte.
- - If we run out of bytes, send a flush command to ANSI cleaner.
- - If we flushed, end conversion. All data has been written to final buffer.
- Now write that buffer.
- - Call ANSI cleaner.
- - It buffers the data and returns when it needs more.
- - If it determines the data was not to be cut, it calls InterNet cleaner
- on the data.
- - If we get a flush command, buffering is determined right away, and
- the rest of the data is either trashed or sent to IC.
- - Call InterNet cleaner.
- - It will buffer the data, and return when it wants more.
- - If it gets enough, it determines is the line to be cut. If it isn't,
- IC feeds it byte by byte to the SpaceConv routine.
- - If flush, determination follows immediately, data is passed to SC,
- or trashed.
-
- - If SpaceConv gets a flush command, it determines what should be trashed
- and what saved, and writes that data out.
-
-
- - All modules should have a flush command to give all the buffered data
- down the hierarchy.
-
- - In IC, add an AI which remembers all the stuff that was found in the
- recog line, and adds it as a suggestion as long it is found in all
- files.
-
- ANSI stripper:
- - Load a new byte.
- - If we have a wait second flag on:
- - Check if it is "[".
- - If so, set ANSI on flag.
- - If not
- - Set clear flag.
- - Insert ESC & the new byte to buffer.
- - If we have clear flag
- - Check if it is a ESC:
- - If so, set a second part wait flag.
- - If it is a $9B:
- - set a ANSI on flag.
- - If other, just add it to the buffer.
- - If we have ANSI on flag:
- - If the character is a alpha.
- - Set clear flag.
-
- Internet message cleaner:
- - Add the new byte to internet buffer.
- - When the byte is an EOL, check for header:
- - If Internet cut is off.
- - If it starts "From":
- - If the line has periods (in paths), exclamations (in paths), colons
- (in time), numbers (in time & date). Activate Internet cut.
- - If line starts "Path:":
- - Has exclamations, periods? Activate IC.
-
- - If Internet cut is on:
- - If the line is empty, Internet cut off.
-